/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.breakaway.api;

/**
 * This class contains statics channel#'s and other other useful constants
 *
 * @author FireBird Robotics
 */
public class Constants {

    //Statics Instance Fields
    ///////////////////////////////////////////////////////////////////////////

    //Driving Joysticks
    //public static final int L_DRIVE_JOYSTICK_CHANNEL = 1, R_DRIVE_JOYSTICK_CHANNEL = 2;

    public static final int L_DRIVE_JOYSTICK_ID = 1, R_DRIVE_JOYSTICK_ID = 2;

    //Joystick port and button ids
    public static final int JOYSTICK_LEFT_PORT_ID       = 0;
    public static final int JOYSTICK_RIGHT_PORT_ID      = 1;
    public static final int JOYSTICK_TRIGGER_BUTTON_ID  = 0;
    public static final int JOYSTICK_DRIBBLER_BUTTON_ID = 1;



    //Left DriveTrain
    //TODO Find correct channels for left drivetrain jaguars.
    public static final int C_LEFT_DRIVE_FRONT = -1;
    public static final int C_LEFT_DRIVE_BACK = -1;
    //TODO Find correct channels for left drivetrain encoder
    public static final int C_LEFT_DRIVE_ENCODER_A = -1, C_LEFT_DRIVE_ENCODER_B = -1;

    //Right DriveTrain
    public static final int C_RIGHT_DRIVE_FRONT = -1;
    public static final int C_RIGHT_DRIVE_BACK = -1;
    //TODO Find correct channels for right drivetrain encoders
    public static final int C_RIGHT_DRIVE_ENCODER_A = -1, C_RIGHT_DRIVE_ENCODER_B = -1;

    
    //Dribbler
    //TODO Find correct channel for dribbler motor.
    public static final int C_DRIBBLER_MOTOR = -1;
    public static final int SPEED_DRIBBLER_MOTOR = 255;//can change this

    public static final int C_GYRO = -1;


    public static final int C_ACCELEROMETER = -1;



    //Jaguar Configiration Options
    public static final int JAGUAR_MAX_LIMIT = 255;
    public static final int JAGUAR_DEADBAND_TOP = 135;
    public static final int JAGUAR_CENTER = 128;
    public static final int JAGUAR_DEADBAND_BOT = 121;
    public static final int JAGUAR_MIN_LIMIT = 1;


    
    //TODO add value for pot channel
    public static final int C_POTENTIOMETER = -1;

    //State Constants for Model
    ///////////////////////////////////////////////////////////////////////////

    //State
    public static final byte DISABLED = 0; //0000
    public static final byte AUTONOMOUS = 8; //1000
    public static final byte TELEOP = 12; //1100

    //Function Type
    public static final byte INIT = 1; //0001
    public static final byte PERIODIC = 2; //0010
    public static final byte CONTINUOUS = 3; //0011

}
